package com.hw.protocol.tool.decode.hw;

import com.hw.protocol.tool.model.entity.hw.AbsPressMeter;
import com.hw.protocol.tool.model.entity.hw.Dtu60His;

/**
 * @author : lihy
 * @date : 2023/3/23 15:29
 * description: 压力计(6020/6019)历史数据解码器
 */

public class Dtu60HisDecode extends Dtu60Decode implements IHisDecode {

    private Dtu60His pm;

    public Dtu60HisDecode(AbsPressMeter pm, byte[] data) {
        super(pm, data);
        this.pm = (Dtu60His) pm;
    }

    @Override
    void setTime() {
        pm.setTime(getTime(dataBuf));
    }

    @Override
    boolean hisData() {
        return true;
    }
}
